#include "loginwindow.h"
#include "mainwindow.h"

#include <QApplication>
#include <QLocale>
#include <QTranslator>
#include <QApplication>
#include <QMainWindow>
#include <QPushButton>
#include <QStatusBar>

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    MainWindow mainWindow;
    LoginWindow loginWindow;
    loginWindow.show();

    // 创建状态栏
    QStatusBar *statusBar = loginWindow.statusBar();
    statusBar->showMessage("Ready");

    LoginWindow::connect(&loginWindow, SIGNAL(loginSignal()), &mainWindow, SLOT(handleLogin()));

    return app.exec();
}
